package weixin.sdk.msg.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import weixin.sdk.msg.vo.recv.WxRecvEventMsg;
import weixin.sdk.msg.vo.recv.WxRecvMsg;

/**
 * 接收事件消息类 
 * @author xuxile 
 **/
public class WxRecvEventMsgParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvEventMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		String event = getElementText(root, "Event");
		String eventKey = getElementText(root, "EventKey");
		
		return new WxRecvEventMsg(msg, event,eventKey);
	}

}
